package com.hrp;

import CustomIRule.CustomOrderIRule;
import CustomIRule.CustomPowerIRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * MySpringCloud
 *
 * @Title: com.hrp
 * @Date: 2020/5/23 17:42
 * @Author: wfg
 * @Description:
 * @Version:
 */
@SpringBootApplication
@EnableEurekaClient
@RibbonClients({
        @RibbonClient(name="SERVER-ORDER",configuration = CustomOrderIRule.class),
        @RibbonClient(name="SERVER-POWER",configuration = CustomPowerIRule.class)
})
@EnableFeignClients
public class UserApp {

    public static void main(String[] args) {
        SpringApplication.run(UserApp.class,args);
    }
}
